//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_fittings_deliveryList.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {
			Fittings_deliveryList: '',
			Fittings_delivery: '',
			CostPrice: '',
			Goods_price: '',
			Tax_exclusive: '',
			goodsInventoryWarehouseXm: '',
			Recycle: '',
			Goods_num: '',
			Remark: ''
		},
		editFormOptions: [
			{ title: '备注', field: 'Remark' },
			{ title: '数量', required: true, field: 'Goods_num', type: 'number' },
			{ type: 'group' },
			{ title: 'ID', required: true, field: 'Fittings_deliveryList', disabled: true },
			{ title: '父级ID', field: 'Fittings_delivery' },
			{ title: '成本价', required: true, field: 'CostPrice', type: 'decimal' },
			{ title: '单价', required: true, field: 'Goods_price', type: 'number' },
			{ title: '无税成本', required: true, field: 'Tax_exclusive', type: 'decimal' },
			{ title: '库存表ID', required: true, field: 'goodsInventoryWarehouseXm' },
			{ key: 'Recycle', data: [], title: '旧件回收', field: 'Recycle', type: 'select' }
		],
		searchFormFields: {},
		searchFormOptions: [],
		columns: [
			{ field: 'WHSE_name', title: '库位名称', type: 'string', bind: { key: '库位编码', data: [] } },
			{ field: 'Goods_sub', title: '商品编码', type: 'string' },
			{ field: 'Goods_name', title: '商品名称', type: 'string' },
			{ field: 'Goods_size', title: '规格型号', type: 'string' },
			{ field: 'AvailableQuantity', title: '库存可用数量', type: 'float' },
			{ field: 'Goods_num', title: '数量', type: 'float', edit: true }
		],
		table: {
			key: 'Fittings_deliveryList',
			footer: 'Foots',
			cnName: '运维发货单明细',
			name: 'q_fittings_deliveryList',
			url: '/q_fittings_deliveryList/',
			sortName: 'Goods_sub'
		}
	};
}
